﻿//JumbotCms_4.1 Final
using System;
using JumbotCms.Common;

namespace JumbotCms.WebFile.Passport
{
    public partial class _login : JumbotCms.API.UserCenter
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string _refer = site.Dir;
            string _page = GetPageHtml("passport_login");
            if (Request.ServerVariables["HTTP_REFERER"] != null)
            {
                if (!Request.ServerVariables["HTTP_REFERER"].ToString().Contains("register"))
                    if (Request.Url.ToString() != Request.ServerVariables["HTTP_REFERER"].ToString())
                        _refer = Request.ServerVariables["HTTP_REFERER"].ToString();
            }
            Response.Write(_page.Replace("{$refer}", _refer));
        }
    }
}
